﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="Log" targetNamespace="http://tempuri.org/Log.xsd" xmlns:mstns="http://tempuri.org/Log.xsd" xmlns="http://tempuri.org/Log.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="ILEConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="ILEConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.ILEConnectionString.ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Log_ErrorTableAdapter" GeneratorDataComponentClassName="Log_ErrorTableAdapter" Name="Log_Error" UserDataComponentName="Log_ErrorTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="ILEConnectionString (Web.config)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillLog_Errors" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetLog_Errors" GeneratorSourceName="FillLog_Errors" GetMethodModifier="Public" GetMethodName="GetLog_Errors" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetLog_Errors" UserSourceName="FillLog_Errors">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     Log_Error.LogErrorID, Log_Error.UserID, Log_Error.ErrorType, Log_Error.ErrorMessage, Log_Error.OS, Log_Error.Browser, Log_Error.Severity, 
                      Log_Error.TimeStamp, Log_Error_UserReport.UserReport, Users.Username, Users.AccountType, Users.FirstName, Users.LastName, Users.Email, 
                      Users.StudentIDNumber
FROM         Log_Error LEFT OUTER JOIN
                      Users ON Log_Error.UserID = Users.UserID LEFT OUTER JOIN
                      Log_Error_UserReport ON Log_Error.LogErrorID = Log_Error_UserReport.LogErrorID
ORDER BY Log_Error.LogErrorID DESC</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="LogErrorID" DataSetColumn="LogErrorID" />
              <Mapping SourceColumn="UserID" DataSetColumn="UserID" />
              <Mapping SourceColumn="ErrorType" DataSetColumn="ErrorType" />
              <Mapping SourceColumn="ErrorMessage" DataSetColumn="ErrorMessage" />
              <Mapping SourceColumn="OS" DataSetColumn="OS" />
              <Mapping SourceColumn="Browser" DataSetColumn="Browser" />
              <Mapping SourceColumn="Severity" DataSetColumn="Severity" />
              <Mapping SourceColumn="TimeStamp" DataSetColumn="TimeStamp" />
              <Mapping SourceColumn="UserReport" DataSetColumn="UserReport" />
              <Mapping SourceColumn="Username" DataSetColumn="Username" />
              <Mapping SourceColumn="AccountType" DataSetColumn="AccountType" />
              <Mapping SourceColumn="FirstName" DataSetColumn="FirstName" />
              <Mapping SourceColumn="LastName" DataSetColumn="LastName" />
              <Mapping SourceColumn="Email" DataSetColumn="Email" />
              <Mapping SourceColumn="StudentIDNumber" DataSetColumn="StudentIDNumber" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="ILEConnectionString (Web.config)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillLog_Error" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetLog_Error" GeneratorSourceName="FillLog_Error" GetMethodModifier="Public" GetMethodName="GetLog_Error" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetLog_Error" UserSourceName="FillLog_Error">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     Log_Error.LogErrorID, Log_Error.UserID, Log_Error.ErrorType, Log_Error.ErrorMessage, Log_Error.OS, Log_Error.Browser, Log_Error.Severity, 
                      Log_Error.TimeStamp, Log_Error_UserReport.UserReport, Users.Username, Users.AccountType, Users.FirstName, Users.LastName, Users.Email, 
                      Users.StudentIDNumber
FROM         Log_Error LEFT OUTER JOIN
                      Users ON Log_Error.UserID = Users.UserID LEFT OUTER JOIN
                      Log_Error_UserReport ON Log_Error.LogErrorID = Log_Error_UserReport.LogErrorID
WHERE Log_Error.LogErrorID = @LogErrorID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="LogErrorID" ColumnName="LogErrorID" DataSourceName="[C:\DOCUMENTS AND SETTINGS\JEINDUS\DESKTOP\ILE RC1\APP_DATA\ILE.MDF].dbo.Log_Error" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@LogErrorID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="LogErrorID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="ILEConnectionString (Web.config)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillLog_ErrorsByUserID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetLog_ErrorsByUserID" GeneratorSourceName="FillLog_ErrorsByUserID" GetMethodModifier="Public" GetMethodName="GetLog_ErrorsByUserID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetLog_ErrorsByUserID" UserSourceName="FillLog_ErrorsByUserID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     Log_Error.LogErrorID, Log_Error.UserID, Log_Error.ErrorType, Log_Error.ErrorMessage, Log_Error.OS, Log_Error.Browser, Log_Error.Severity, 
                      Log_Error.TimeStamp, Log_Error_UserReport.UserReport, Users.Username, Users.AccountType, Users.FirstName, Users.LastName, Users.Email, 
                      Users.StudentIDNumber
FROM         Log_Error LEFT OUTER JOIN
                      Users ON Log_Error.UserID = Users.UserID LEFT OUTER JOIN
                      Log_Error_UserReport ON Log_Error.LogErrorID = Log_Error_UserReport.LogErrorID
WHERE     (Log_Error.UserID = @UserID)
ORDER BY Log_Error.TimeStamp DESC</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="UserID" ColumnName="UserID" DataSourceName="[C:\DOCUMENTS AND SETTINGS\JEINDUS\DESKTOP\ILE RC1\APP_DATA\ILE.MDF].dbo.Log_Error" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@UserID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="ILEConnectionString (Web.config)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="InsertLog_Error" Modifier="Public" Name="InsertLog_Error" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="InsertLog_Error">
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>INSERT INTO Log_Error
                      (UserID, ErrorType, ErrorMessage, OS, Browser, Severity, TimeStamp)
VALUES     (@UserID,@ErrorType,@ErrorMessage,@OS,@Browser,@Severity,@TimeStamp)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="UserID" ColumnName="UserID" DataSourceName="[C:\DOCUMENTS AND SETTINGS\JEINDUS\DESKTOP\ILE RC1\APP_DATA\ILE.MDF].dbo.Log_Error" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@UserID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="ErrorType" ColumnName="ErrorType" DataSourceName="[C:\DOCUMENTS AND SETTINGS\JEINDUS\DESKTOP\ILE RC1\APP_DATA\ILE.MDF].dbo.Log_Error" DataTypeServer="varchar(200)" DbType="AnsiString" Direction="Input" ParameterName="@ErrorType" Precision="0" ProviderType="VarChar" Scale="0" Size="200" SourceColumn="ErrorType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="ErrorMessage" ColumnName="ErrorMessage" DataSourceName="[C:\DOCUMENTS AND SETTINGS\JEINDUS\DESKTOP\ILE RC1\APP_DATA\ILE.MDF].dbo.Log_Error" DataTypeServer="text" DbType="AnsiString" Direction="Input" ParameterName="@ErrorMessage" Precision="0" ProviderType="Text" Scale="0" Size="2147483647" SourceColumn="ErrorMessage" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="OS" ColumnName="OS" DataSourceName="[C:\DOCUMENTS AND SETTINGS\JEINDUS\DESKTOP\ILE RC1\APP_DATA\ILE.MDF].dbo.Log_Error" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@OS" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="OS" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Browser" ColumnName="Browser" DataSourceName="[C:\DOCUMENTS AND SETTINGS\JEINDUS\DESKTOP\ILE RC1\APP_DATA\ILE.MDF].dbo.Log_Error" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@Browser" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="Browser" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="Severity" ColumnName="Severity" DataSourceName="[C:\DOCUMENTS AND SETTINGS\JEINDUS\DESKTOP\ILE RC1\APP_DATA\ILE.MDF].dbo.Log_Error" DataTypeServer="tinyint" DbType="Byte" Direction="Input" ParameterName="@Severity" Precision="0" ProviderType="TinyInt" Scale="0" Size="1" SourceColumn="Severity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="TimeStamp" ColumnName="TimeStamp" DataSourceName="[C:\DOCUMENTS AND SETTINGS\JEINDUS\DESKTOP\ILE RC1\APP_DATA\ILE.MDF].dbo.Log_Error" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@TimeStamp" Precision="0" ProviderType="DateTime" Scale="0" Size="8" SourceColumn="TimeStamp" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
              </DbSource>
              <DbSource ConnectionRef="ILEConnectionString (Web.config)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="InsertUserReport" Modifier="Public" Name="InsertUserReport" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="InsertUserReport">
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>INSERT INTO Log_Error_UserReport
                      (LogErrorID, UserReport)
VALUES     (@LogErrorID,@UserReport)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="LogErrorID" ColumnName="LogErrorID" DataSourceName="[C:\DOCUMENTS AND SETTINGS\JEINDUS\MY DOCUMENTS\VISUAL STUDIO 2008\WEBSITES\ILE\APP_DATA\ILE.MDF].dbo.Log_Error_UserReport" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@LogErrorID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="LogErrorID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="UserReport" ColumnName="UserReport" DataSourceName="[C:\DOCUMENTS AND SETTINGS\JEINDUS\MY DOCUMENTS\VISUAL STUDIO 2008\WEBSITES\ILE\APP_DATA\ILE.MDF].dbo.Log_Error_UserReport" DataTypeServer="text" DbType="AnsiString" Direction="Input" ParameterName="@UserReport" Precision="0" ProviderType="Text" Scale="0" Size="2147483647" SourceColumn="UserReport" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="Log" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="Log" msprop:Generator_DataSetName="Log">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Log_Error" msprop:Generator_UserTableName="Log_Error" msprop:Generator_RowDeletedName="Log_ErrorRowDeleted" msprop:Generator_RowChangedName="Log_ErrorRowChanged" msprop:Generator_RowClassName="Log_ErrorRow" msprop:Generator_RowChangingName="Log_ErrorRowChanging" msprop:Generator_RowEvArgName="Log_ErrorRowChangeEvent" msprop:Generator_RowEvHandlerName="Log_ErrorRowChangeEventHandler" msprop:Generator_TableClassName="Log_ErrorDataTable" msprop:Generator_TableVarName="tableLog_Error" msprop:Generator_RowDeletingName="Log_ErrorRowDeleting" msprop:Generator_TablePropName="Log_Error">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="LogErrorID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="LogErrorID" msprop:Generator_ColumnVarNameInTable="columnLogErrorID" msprop:Generator_ColumnPropNameInRow="LogErrorID" msprop:Generator_ColumnPropNameInTable="LogErrorIDColumn" type="xs:int" />
              <xs:element name="UserID" msprop:Generator_UserColumnName="UserID" msprop:Generator_ColumnVarNameInTable="columnUserID" msprop:Generator_ColumnPropNameInRow="UserID" msprop:Generator_ColumnPropNameInTable="UserIDColumn" type="xs:int" minOccurs="0" />
              <xs:element name="ErrorType" msprop:Generator_UserColumnName="ErrorType" msprop:Generator_ColumnVarNameInTable="columnErrorType" msprop:Generator_ColumnPropNameInRow="ErrorType" msprop:Generator_ColumnPropNameInTable="ErrorTypeColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ErrorMessage" msprop:Generator_UserColumnName="ErrorMessage" msprop:Generator_ColumnVarNameInTable="columnErrorMessage" msprop:Generator_ColumnPropNameInRow="ErrorMessage" msprop:Generator_ColumnPropNameInTable="ErrorMessageColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="OS" msprop:Generator_UserColumnName="OS" msprop:Generator_ColumnVarNameInTable="columnOS" msprop:Generator_ColumnPropNameInRow="OS" msprop:Generator_ColumnPropNameInTable="OSColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Browser" msprop:Generator_UserColumnName="Browser" msprop:Generator_ColumnVarNameInTable="columnBrowser" msprop:Generator_ColumnPropNameInRow="Browser" msprop:Generator_ColumnPropNameInTable="BrowserColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Severity" msprop:Generator_UserColumnName="Severity" msprop:Generator_ColumnVarNameInTable="columnSeverity" msprop:Generator_ColumnPropNameInRow="Severity" msprop:Generator_ColumnPropNameInTable="SeverityColumn" type="xs:unsignedByte" />
              <xs:element name="TimeStamp" msprop:Generator_UserColumnName="TimeStamp" msprop:Generator_ColumnVarNameInTable="columnTimeStamp" msprop:Generator_ColumnPropNameInRow="TimeStamp" msprop:Generator_ColumnPropNameInTable="TimeStampColumn" type="xs:dateTime" />
              <xs:element name="UserReport" msprop:Generator_UserColumnName="UserReport" msprop:Generator_ColumnVarNameInTable="columnUserReport" msprop:Generator_ColumnPropNameInRow="UserReport" msprop:Generator_ColumnPropNameInTable="UserReportColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Username" msprop:Generator_UserColumnName="Username" msprop:Generator_ColumnVarNameInTable="columnUsername" msprop:Generator_ColumnPropNameInRow="Username" msprop:Generator_ColumnPropNameInTable="UsernameColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="AccountType" msprop:Generator_UserColumnName="AccountType" msprop:Generator_ColumnVarNameInTable="columnAccountType" msprop:Generator_ColumnPropNameInRow="AccountType" msprop:Generator_ColumnPropNameInTable="AccountTypeColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="15" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="FirstName" msprop:Generator_UserColumnName="FirstName" msprop:Generator_ColumnVarNameInTable="columnFirstName" msprop:Generator_ColumnPropNameInRow="FirstName" msprop:Generator_ColumnPropNameInTable="FirstNameColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="LastName" msprop:Generator_UserColumnName="LastName" msprop:Generator_ColumnVarNameInTable="columnLastName" msprop:Generator_ColumnPropNameInRow="LastName" msprop:Generator_ColumnPropNameInTable="LastNameColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Email" msprop:Generator_UserColumnName="Email" msprop:Generator_ColumnVarNameInTable="columnEmail" msprop:Generator_ColumnPropNameInRow="Email" msprop:Generator_ColumnPropNameInTable="EmailColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="StudentIDNumber" msprop:Generator_UserColumnName="StudentIDNumber" msprop:Generator_ColumnVarNameInTable="columnStudentIDNumber" msprop:Generator_ColumnPropNameInRow="StudentIDNumber" msprop:Generator_ColumnPropNameInTable="StudentIDNumberColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Log_Error" />
      <xs:field xpath="mstns:LogErrorID" />
    </xs:unique>
  </xs:element>
</xs:schema>